<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>axios手写</title>
</head>
<body>
	<button>params</button>
</body>
<script src="./node_modules/axios/dist/axios.js"></script>
<script type="module">
	import axios from "./index.js";
	const btn = document.querySelector("button");
	// 当请求的地址不存在 ，那么axios返回的是一个状态为失败的Promise实例
	btn.onclick = function(){
		const result = axios({
			url:"http://127.9.0.9/info2",
			params:{
				a:1,
				b:2
			},
		});
		console.log(11111,result);
	}
</script>
</html>